package com.xs.common.bean;

import com.xs.common.excel.ExcelField;
import com.xs.common.excel.IExcelModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 用户表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User   {
    private Long id;

    @ExcelField(name = "用户编号", isUnique = true,column = "A")
    @NotBlank(message = "用户编号不能为空")
    private String userNum;               //用户编号

    @ExcelField(name = "姓名", column = "B")
    @NotBlank(message = "姓名不能为空")
    private String userName;              //姓名

    @ExcelField(name = "手机号",column = "C")
    @NotBlank(message = "手机号不能为空")
    private String mobile;                //手机号


    @ExcelField(name = "岗位",column = "D")
    @NotBlank(message = "岗位不能为空")
    private String post;                  //岗位

    private Date insertTime;
    private Date updateTime;


}
